package qf.service.serviceImpl;

import qf.dao.RecordDao;
import qf.pojo.Page;
import qf.pojo.Record;
import qf.service.recordService;

import java.util.List;

/**
 * @author 86198
 * @version V1.0
 * @Project Java_qf
 * @Package qf.service.serviceImpl
 * @Description:
 * @Date 2022/5/27 14:57
 */
public class RecordServiceImpl implements recordService {
    private RecordDao recordDao;
    public RecordServiceImpl(RecordDao recordDao) {
        this.recordDao = recordDao;
    }
    public List<Record> selectAll(Page page) {
        return recordDao.selectAllRecords(page);
    }

    public int selectCount(Page page) {
        return recordDao.FindCountAll(page);
    }
}
